package com.sxt.practiceapplication.entity.studyrecord;

import com.google.gson.annotations.SerializedName;

import java.time.LocalDateTime;

/**
 * 课程学习记录
 */
public class StudyRecord {

    public int id;

    /**
     * 课程学习时间
     */
    @SerializedName("created_time")
    public String studyTime;

    /**
     * 课程
     */
    public Course course;

    public String getStudyTime() {
        return studyTime;
    }

    public void setStudyTime(String studyTime) {
        this.studyTime = studyTime;
    }

    public Course getCourse() {
        return course;
    }

    public void setCourse(Course course) {
        this.course = course;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    /**
     * 课程信息
     */
    public static class Course {

        /**
         * 课程id
         */
        @SerializedName("id")
        public Integer courseId;

        /**
         * 课程标题
         */
        @SerializedName("course_title")
        public String courseTitle;

        /**
         * 课程简介
         */
        @SerializedName("course_des")
        public String courseDes;

        public Integer getCourseId() {
            return courseId;
        }

        public void setCourseId(Integer courseId) {
            this.courseId = courseId;
        }

        public String getCourseTitle() {
            return courseTitle;
        }

        public void setCourseTitle(String courseTitle) {
            this.courseTitle = courseTitle;
        }

        public String getCourseDes() {
            return courseDes;
        }

        public void setCourseDes(String courseDes) {
            this.courseDes = courseDes;
        }
    }
}
